import request from '@/utils/request'

// 查询督导员审核列表
export function listSurveillanceSupervisor(query) {
  return request({
    url: '/wvp/supervisor/list',
    method: 'get',
    params: query
  })
}

// 查询督导员审核详细
export function getSurveillanceSupervisor(id) {
  return request({
    url: '/wvp/supervisor/' + id,
    method: 'get'
  })
}

// 新增督导员审核
export function addSurveillanceSupervisor(data) {
  return request({
    url: '/wvp/supervisor',
    method: 'post',
    data: data
  })
}

// 修改督导员审核
export function updateSurveillanceSupervisor(data) {
  return request({
    url: '/wvp/supervisor',
    method: 'put',
    data: data
  })
}

// 删除督导员审核
export function delSurveillanceSupervisor(id) {
  return request({
    url: '/wvp/supervisor/' + id,
    method: 'delete'
  })
}


export function onDuty(id) {
  return request({
    url: '/wvp/supervisor/onDuty/'+id,
    method: 'post',
    data: {}
  })
}

export function leaveDuty(id) {
  return request({
    url: '/wvp/supervisor/leaveDuty/'+id,
    method: 'post',
    data: {}
  })
}

